<?php
/**
 * 活动奖品（游戏）
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActPrize extends Model
{
    protected $table = 'act_prize';

    protected function getDateFormat()
    {
        return 'U';
    }


    protected $guarded = [''];

    public function act()
    {
        return $this->belongsTo('App\Models\Act', 'act_id', 'id');
    }

    public function setting()
    {
        return $this->belongsTo('App\Models\ActPrizeSetting', 'id', 'prize_id');
    }
}
